package com.f5.management.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * 小区列表
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Community {
    private int id;             //id
    private String serialNumber;//小区编号
    private String name;        //小区名字
    private String location;    //坐落地址
    private int area;           //占地面积（m2）
    private int peopleNumber;   //总户数
    private int greening;       //绿化率（%）
    private String pic;         //缩略图
    private String developer;   //开发商名称
    private String propertyCompany;  //物业公司名称
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT"+24)
    private Date createTime;    //创建时间
    private boolean status;     //状态
    private int building;  //栋数管理
}
